Python v3.7 HowTos:
Get current time in milliseconds
Find the date of the first monday of a given week
import datetime print(datetime.date(2018, 10, 14).isocalendar()[1])
Output:
41
See also
https://www.w3resource.com/python-exercises/date-time-exercise/python-date-time-exercise-13.php